/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.assignment2.question3.violatingDIP.Impl;

/**
 *
 * @author Ziyaad
 */
public class Truck {
    
   private int litres;
    
    public double consumesFuel()
    {
        return litres * 20;
    }

    /**
     * @return the litres
     */
    public int getLitres() {
        return litres;
    }

    /**
     * @param litres the litres to set
     */
    public void setLitres(int litres) {
        this.litres = litres;
    }
    
}
